package po;

import java.io.Serializable;
import exception.InputNotRegularException;

public class GradeSetPO implements Serializable{
	private static final long serialVersionUID = -5621834030570914865L;
	final static int GAP_ONE=100;
	final static int GAP_TWO=500;
	int gradeOne;
	int gradeTwo;
	int gradeThree;
	
	public GradeSetPO(){
	}
	
	public void setQuantity(int g1,int g2,int g3)throws InputNotRegularException{
		if(0<g1&&0<g2&&0<g3){
			this.gradeOne=g1;
			this.gradeTwo=g2;
			this.gradeThree=g3;
		}
		else 
			throw new InputNotRegularException("Quantity must be positive!");
	}
	
	public int  getPrimaryQuantity(){
		return this.gradeOne;
	}
	
	public int getJuniorQuantity(){
		return this.gradeTwo;
	}
	
	public int getSeniorQuantity(){
		return this.gradeThree;
	}
	
	public int getGapOne(){
		return GAP_ONE;
	}
	
	public int getGapTwo(){
		return GAP_TWO;
	}
}
